# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-exporter-lite
_pkgname=Exporter-Lite
pkgver=0.08
pkgrel=11
pkgdesc='Lightweight exporting of variables.'
arch=('any')
license=('PerlArtistic')
url='https://metacpan.org/pod/Exporter::Lite'
depends=('perl')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/$_pkgname-$pkgver.tar.gz")
sha512sums=('8c6ff5a88c1b810d74156c5d84695cfde6f555e0fc663804123e2a96f5e2235a5adeebbf24b18301ed2c3fb57f76788ecfdf301b26263279e92a88a9143b8953')

build() {
  cd "$_pkgname-$pkgver"

  perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd "$_pkgname-$pkgver"

  make install DESTDIR="$pkgdir"

  find $pkgdir -name perllocal.pod -delete
  find $pkgdir -name .packlist -delete
}

